home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tcl
/
seek.z
/
seek
Wrap
Text File
|
1998-10-30
|
2KB
|
67 lines
sssseeeeeeeekkkk((((3333TTTTccccllll)))) sssseeeeeeeekkkk((((3333TTTTccccllll))))
NNNNAAAAMMMMEEEE
seek - Change the access position for an open file
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
sssseeeeeeeekkkk _f_i_l_e_I_d _o_f_f_s_e_t ?_o_r_i_g_i_n?
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Change the current access position for _f_i_l_e_I_d. _F_i_l_e_I_d must have been the
return value from a previous call to ooooppppeeeennnn, or it may be ssssttttddddiiiinnnn, ssssttttddddoooouuuutttt, or
ssssttttddddeeeerrrrrrrr to refer to one of the standard I/O channels. The _o_f_f_s_e_t and
_o_r_i_g_i_n arguments specify the position at which the next read or write
will occur for _f_i_l_e_I_d. _O_f_f_s_e_t must be an integer (which may be negative)
and _o_r_i_g_i_n must be one of the following:
ssssttttaaaarrrrtttt
The new access position will be _o_f_f_s_e_t bytes from the start of the
file.
ccccuuuurrrrrrrreeeennnntttt
The new access position will be _o_f_f_s_e_t bytes from the current access
position; a negative _o_f_f_s_e_t moves the access position backwards in
the file.
eeeennnndddd The new access position will be _o_f_f_s_e_t bytes from the end of the
file. A negative _o_f_f_s_e_t places the access position before the end-
of-file, and a positive _o_f_f_s_e_t places the access position after the
end-of-file.
The _o_r_i_g_i_n argument defaults to ssssttttaaaarrrrtttt. This command returns an empty
string.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
access position, file, seek
PPPPaaaaggggeeee 1111